<h3>Deposit Fund from Ego Pay <?php echo trim($model->amount);?></h3>    
<div class="form">
    <?php
    require '/home/adminxxx/public_html/viewinvesta.com/protected/components/EgoPaySciNew.php';
    try {
        $oEgopay = new EgoPaySci(array(
            'store_id' => 'QN4EVXQPV831',
            'store_password' => 'Ir30P1XyfxGQweZlS6ZKOETnjiiEp353'
        ));
        $sPaymentHash = $oEgopay->createHash(array(
            'amount' => trim($model->amount),
            'currency' => 'USD',
            'description' => 'Viewinvesta Fund Transfer',
            'fail_url' => Yii::app()->createAbsoluteUrl('memberPosition/epFail'),
            'success_url' => Yii::app()->createAbsoluteUrl('memberPosition/epSuccess'),
            //'callback_url' => Yii::app()->createAbsoluteUrl('memberPosition/epSuccess')
        ));
    } catch (EgoPayException $e) {
        die($e->getMessage());
    }
  
    $session = new CHttpSession;
    $session->open();
    $_SESSION["ep_amnt"] = trim($model->amount);
    $_SESSION["ep_curr"] = "USD";    
    ?>
    <fieldset  class="details">
        <legend>Overview of Transfer</legend>
        Amount to Transfer $<strong><?php echo trim($model->amount); ?></strong><br />
        Currency $<strong>USD</strong><br />
        Ego Pay Merchant: Viewinvesta
        <form action="<?php echo EgoPaySci::EGOPAY_PAYMENT_URL; ?>" method="post">    
            <input type="hidden" name="hash" value="<?php echo $sPaymentHash ?>" />
            <div class="buttons">
                <br/><input type="submit" value="Process" />
            </div>
        </form>
    </fieldset>
</div>